﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导入</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-row" style="margin-top:10px;">
            <div class="layui-col-md5">
                <div class="site-content">   <h1 class="layui-text">上传导入</h1></div>
            </div>
            <div class="layui-col-md5">
                <div class="site-content">   <h1 class="layui-text"> 导入预览</h1></div>
            </div>
        </div>

        <div class="layui-progress">
            <div class="layui-progress-bar" lay-percent="50%"></div>
        </div>
        <div class="site-content" style="margin-top:10px; margin-left:10px;">
            <ul class="layui-timeline">
                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">学员信息</h3>
                        <div class="layui-card-body">
                            <h6 class="layui-timeline-title">名单总数：<label >33</label>  导入失败人数：<label  class="layui-badge">44</label></h6>
                            <table class="layui-table" lay-skin="line" lay-data="{ url:'/Sys/Grant/Data?', page:true, id:'idTest',height: 'full-250', cellMinWidth: 120,}" lay-filter="demo">
                                <thead>
                                    <tr>

                                        <th lay-data="{field:'Remark',  sort: true, fixed: true}">失败原因</th>
                                        <th lay-data="{field:'ChildName'}">宝宝小名</th>
                                        <th lay-data="{field:CustName'}">宝宝姓名</th>
                                        <th lay-data="{field:'BirdDate', sort: true}">月龄</th>
                                        <th lay-data="{field:'LinkName'}">家长姓名</th>
                                        <th lay-data="{field:'CustTel'}">联系电话</th>
                                        <th lay-data="{field:'state', sort: true}">状态</th>

                                        <th lay-data="{field:'CustFrom', sort: true}">渠道来源</th>
                                        <th lay-data="{field:'CusFromRemark' }">渠道备注</th>
                                       
                                    </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </li>

                <li class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                    <div class="layui-timeline-content layui-text">
                        <div class="layui-timeline-title">导入完毕</div>
                    </div>
                    <div>
                        <a href="import.html" class="layui-btn layui-btn-normal ">　　上一步　</a>     <a href="customer.html" class="layui-btn layui-btn-normal ">　　导入完毕　</a>
                    </div>
                </li>
            </ul>
        </div>

    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        //注意进度条依赖 element 模块，否则无法进行正常渲染和功能性操作
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>
    <script>
        layui.use('upload', function () {
            var upload = layui.upload;

            //执行实例
            var uploadInst = upload.render({
                elem: '#test-upload-drag' //绑定元素
                , url: '/upload/' //上传接口
                , done: function (res) {
                    //上传完毕回调
                }
                , error: function () {
                    //请求异常回调
                }
            });
        });
    </script>

    <script>
        layui.use('table', function () {
            var table = layui.table;
            //监听工具条
            table.on('tool(demo)', function (obj) {
                var data = obj.data;
                if (obj.event === 'detail') {
                    layer.msg('ID：' + data.id + ' 的查看操作');
                } else if (obj.event === 'del') {
                    layer.confirm('真的删除行么', function (index) {
                        obj.del();
                        layer.close(index);
                    });
                } else if (obj.event === 'edit') {
                    layer.alert('编辑行：<br>' + JSON.stringify(data))
                }
            });

        });
    </script>
</body>
</html>